<?xml version="1.0" encoding="utf-8" ?>
<rx>
	<macro name="ident" text="[a-zA-Z0-9_]+"/>
	<macro name="sexpr" text="[^()]*"/>
	
	<replace text="byte* const" with="byte*"/>
	<replace text="const byte*" with="byte*"/>
	<replace text="while (1)" with="while (true)"/>

	<replace rx="true" rerun="true">
		<text><![CDATA[[\x20\t]*(?<eol>\r?\n)]]></text>
		<with escaped="true">\r\n</with>
	</replace>
	
	<replace rx="true" rerun="true">
		<text><![CDATA[(?<eol>\r?\n\r?\n)(\r?\n)+]]></text>
		<with escaped="true">\r\n\r\n</with>
	</replace>
	
	<replace>
		<text><![CDATA[->]]></text>
		<with>.</with>
	</replace>

	<replace rx="true">
		<text>\{\s*\}</text>
		<with>{ /* do nothing */ }</with>
	</replace>
</rx>